﻿@model IEnumerable<AidBrella.ViewModels.ProjectViewModel>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
 <script type="text/javascript"  src="@Url.Content("~/Scripts/js/project.js")"></script>  

<p>
    @Html.ActionLink("Create New", "Create")
</p>

<div id="project-list">
 @foreach (var item in Model)
 {
   <div class="row">
   <div class="cols2">
    <h3><a href="Project/View/@item.Id"> @item.Name </a></h3> [ @item.ProjectAddedBy ]
     <p> @item.Description </p>
    </div>
   <div class="cols2">
   @if(!item.UserCanUpdateThis)
   {
      <a id="follow-state-@item.Id" onclick="onProjectFollow('@item.Id');"  href="#" class="project-follow">@item.FollowState </a>
   }
    </div>
    </div>
    

 }


     
   
   
</div>
